package gx.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gx.dao.CategoryDao;
import gx.entity.Category;
import gx.service.common.BaseService;

@Service
public class CategoryService extends BaseService<Category> {
private CategoryDao categoryDao;

public CategoryDao getCategoryDao() {
	return categoryDao;
}
@Autowired
public void setCategoryDao(CategoryDao categoryDao) {
	this.categoryDao = categoryDao;
	super.setDao(this.categoryDao);
}

public List<Category> findByName(String name){
	return categoryDao.findByName(name);
	 
}

}
